package com.wudi.estate.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wudi.estate.bean.admin.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    List<Map<String, Object>> selectAllAdminAndRoles() throws Exception;

    void insert1(Admin admin) throws Exception;

    Admin selectByUsername(String username) throws Exception;
}
